export function debounce(fn,time=100) {
  /**
   * 函数节流
   */
    let timer = null;
    return function(...args){
      if(timer) clearTimeout(timer)
      timer = setTimeout(function(){
        fn.apply(this,args);
        timer = null;
      },time)
    }
}


